package model

type AccountsLog struct {
	Id         int
	UserId     int
	AccountId  int
	TradeTime  string  //直接以string 类型接收mysql里的datetime字段值,不用time.Time
	ModifyTime string  //直接以string 类型接收mysql里的datetime字段值,不用time.Time
	Amount     float32 //mysql 字段为decimal(10,2)
	Summary    string
	Category   string
	CategoryId int
	OrgId      int
	PersonId   int
}

func (l *AccountsLog) SetUserId(userId int) {
	l.UserId = userId
}
func (l *AccountsLog) SetAccountId(accountId int) {
	l.AccountId = accountId
}
